package com.book.bookmanage.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseEnum {
    SUCCESS(10000, "SUCCESS！"),
    FAIL(50000, "FAILED！"),
    DATA_EXIST(50001, "数据已存在！"),
    PARENT_DATA_NOT_EXIST(50002, "父级数据不存在！"),
    INSERT_FAILED(50003, "数据新增失败！"),
    PARAM_ERROR(50004, "参数错误"),
    ;
    private final int code;
    private final String msg;
}
